package com.hzhc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hzhc.entity.TrainPlan;
import com.hzhc.vo.TrainPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 班列计划 Mapper 接口
 * </p>
 *
 * @author 1
 * @since 2024-05-29
 */
@Mapper
public interface TrainPlanMapper extends BaseMapper<TrainPlan> {

    IPage<TrainPlanVo> getTrainPlanList(Page<TrainPlanVo> page,@Param("vo") TrainPlanVo vo);

    List<TrainPlanVo> getCalendar(@Param("vo") TrainPlanVo vo);

    List<TrainPlanVo> getTrainPlanFyCount();

    List<TrainPlanVo> getTrainPlanDdCount();

    List<TrainPlanVo> getTodayPlan();

    List<TrainPlanVo> getTrainPlanCount();

    List<TrainPlan> getXcPlanList();

    IPage<TrainPlanVo> getAppXcTrainPlanList(Page<TrainPlanVo> page, TrainPlanVo vo);

    TrainPlan selectByTrainPlanNo(@Param("no")String trainPlanNo);

    IPage<TrainPlanVo> getWxTrainPlanList(Page<TrainPlanVo> page,@Param("vo") TrainPlanVo vo);

    TrainPlan getByTrainPlanNo(@Param("no") String trainPlanNo);

}
